package com.project.service.imp;

import com.project.bean.CityBean;
import com.project.dao.ICityDao;
import com.project.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImp implements ICityService {

    @Autowired
    ICityDao dao;

    @Override
    public List<CityBean> findByCountry(int countryId) {
        return dao.findByCountry(countryId);
    }
}
